//
//  AViewController.m
//  ObjcGo
//
//  Created by 邢伟新 on 2021/1/29.
//

#import "AViewController.h"
#import "BViewController.h"

@interface AViewController ()

@end

@implementation AViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSLog(@"A----%s",__func__);
    
    self.title = @"A";
    self.view.backgroundColor = [UIColor whiteColor];
    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    BViewController  *b = [[BViewController alloc]init];
    [self.navigationController pushViewController:b animated:YES];
    
}


-(void)loadView{
    [super loadView];
    NSLog(@"A----%s",__func__);
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    NSLog(@"A----%s",__func__);
}
-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    NSLog(@"A----%s",__func__);
}

-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    NSLog(@"A----%s",__func__);
}
-(void)viewDidDisappear:(BOOL)animated{
    [super viewDidDisappear:animated];
    NSLog(@"A----%s",__func__);
}
-(void)dealloc{
    NSLog(@"A----%s",__func__);
}
@end
